<?php
    namespace Admin\Model;
    use Think\Model\RelationModel;
    class UploadimgModel extends RelationModel{
        protected $_link = array(
            'ActiveUser'  =>  array(
                'mapping_type'  =>self::BELONGS_TO,
                'class_name'    => 'user',
                'foreign_key'   => 'user_id',
                'mapping_name'=>'userInfo'
            )
       );

    }
?>